﻿namespace Deppton.Mobile.Services.FilesystemHelpers
{
    using System.Xml.Linq;
    using Deppton.Model;
    using Deppton.Model.Xml;

    public static class SurveyDefinitionFilesystemHandler
    {
        public static SurveyDefinition LoadFromFile(string path)
        {
            return SurveyDefinitionXmlHelper.ReadSurveyDefinitionElement(XDocument.Load(path).Document.Element("surveyDefinition"));
        }
    }
}
